<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.box {
				width: 200px;
				height: 200px;
				border: 1px solid red;
				text-align: center;
			}

			.box::after {
				content: '';
				display: inline-block;
				vertical-align: middle;
				height: 100%;
			}

			img {
				vertical-align: middle;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<img
				src="https://ss1.baidu.com/70cFfyinKgQFm2e88IuM_a/forum/pic/item/242dd42a2834349b406751a3ceea15ce36d3beb6.jpg">
		</div>
	</body>
</html>
